#! /bin/sh -vx
# $Id: pdfimage.test 804 2018-05-17 22:29:15Z karl $
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>#
# Copyright 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_pdftex=$BinDir/pdftex$ExeExt

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS="$srcdir/pdftexdir/tests;$srcdir/tests"; export TEXINPUTS
TEXFORMATS=.; export TEXFORMATS

$_pdftex -ini -interaction=batchmode pdfimage </dev/null || exit 1

$_pdftex -fmt=pdfimage -interaction=batchmode pdfimage </dev/null || exit 2

exit 0
